#ifndef FIGUREMAP_H
#define FIGUREMAP_H

#include "CanvasToolBarModel.h"
#include <QObject>

class FigureMap : public QObject
{
    Q_OBJECT
public:
    static FigureMap* instance();

    Q_INVOKABLE const QString value(const ToolType key) const;

    Q_INVOKABLE void insert(const ToolType key, const QString& value);

    Q_INVOKABLE int length() const;

private:
    QHash<ToolType, QString> m_maps;
};

#endif // FIGUREMAP_H
